package learnsicp;

import java.util.Arrays;

public class T1 {

	int[] x = { 1, 2, 3,4,5,6,7};

	int[] y = new int[6];

	

	public void s(int l) {
		
		int[] r = new int[6];
		
		int b=0;
	
		for (int i = 0; i < x.length; i++) {
			
			int m = x[i];
			if(l==m) {				
				continue;

			}
				
				r[b]=x[i];
				b++;

			
		}
		System.out.println(Arrays.toString(r));

	}

	public static void main(String[] args) {

		T1 t1 = new T1();
		t1.s(5);
		

	}

}
